#include "gamescene3.h"
#include "ui_gamescene3.h"

GameScene3::GameScene3(QWidget *parent) :
    GameScene(parent)
{




    brick_num=BRICK_NUMBER_3;


    int px = 20;
    int py = 40;
     enemies[0] = new hardbrick(140,py);
     enemies[1] = new hardbrick(540,py);
     py=py+BRICK_WIDTH+BRICK_INTERVAL;
     enemies[2] = new hardbrick(70,py);
     enemies[3] = new hardbrick(210,py);
     enemies[4] = new hardbrick(470,py);
     enemies[5] = new hardbrick(610,py);
     py=py+BRICK_WIDTH+BRICK_INTERVAL;
     enemies[6] = new hardbrick(40,py);
     enemies[7] = new hardbrick(250,py);
     enemies[8] = new hardbrick(440,py);
     enemies[9] = new hardbrick(650,py);
     py=py+BRICK_WIDTH+BRICK_INTERVAL;
     enemies[10] = new hardbrick(20,py);
     enemies[11] = new hardbrick(270,py);
     enemies[12] = new hardbrick(420,py);
     enemies[13] = new hardbrick(670,py);
     py = 310;
    for(int i = 14;i<21;++i)
    {
          enemies[i] = new hardbrick(px,py);
          px=px+BRICK_INTERVAL+BRICK_LENGTH;
    }
      px = 80;
       py=py+BRICK_WIDTH+BRICK_INTERVAL;
       enemies[21] = new hardbrick(px,py);
       px=px+BRICK_INTERVAL+BRICK_LENGTH;
       for(int i = 22;i<26;++i)
       {
           enemies[i]=new brick(px,py);
           px=px+BRICK_INTERVAL+BRICK_LENGTH;
       }
        enemies[26] = new hardbrick(px,py);

        px = 120;
        py=py+BRICK_WIDTH+BRICK_INTERVAL;
        enemies[27] = new hardbrick(px,py);
        px=px+BRICK_INTERVAL+BRICK_LENGTH;
        for(int i = 28;i<31;++i)
        {
            enemies[i]= new brick(px,py);
            px=px+BRICK_INTERVAL+BRICK_LENGTH;
        }
        enemies[31] = new  hardbrick(px,py);
        px = 180;
        py=py+BRICK_WIDTH+BRICK_INTERVAL;
        enemies[32]= new hardbrick(px,py);
        px=px+BRICK_INTERVAL+BRICK_LENGTH;
        for(int i = 33;i<35;++i)
        {
            enemies[i]=new brick(px,py);
            px=px+BRICK_INTERVAL+BRICK_LENGTH;
        }
        enemies[35]=new hardbrick(px,py);


        px = 230;
        py=py+BRICK_WIDTH+BRICK_INTERVAL;
        enemies[36]= new hardbrick(px,py);
        px=px+BRICK_INTERVAL+BRICK_LENGTH;
        for(int i = 37;i<38;++i)
        {
            enemies[i]=new brick(px,py);
            px=px+BRICK_INTERVAL+BRICK_LENGTH;
        }
        enemies[38]=new hardbrick(px,py);
        enemies[39]=new hardbrick(290,520);
        enemies[40]=new hardbrick(400,520);





}
